package com.lh.tams.domain;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.lh.tams.util.diy.CustomDateSerializer;

/**
 * TamsDeal entity. @author MyEclipse Persistence Tools
 */

public class TamsDeal implements java.io.Serializable {

	// Fields

	private long idBgt;
	private TamsPerson tamsPerson;
	private String caseNo;
	private int dealType;
	private Date beginDate;
	private Date endDate;
	private String dealContent;
	private String remark;
	private int isFinish;
	private int isSuccess;
	private int isOrder;
	private String orderContent;
	
	public int getIsOrder() {
		return isOrder;
	}

	public void setIsOrder(int isOrder) {
		this.isOrder = isOrder;
	}

	public String getOrderContent() {
		return orderContent;
	}

	public void setOrderContent(String orderContent) {
		this.orderContent = orderContent;
	}

	private TamsCase tamsCase;
	
	public int getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(int isSuccess) {
		this.isSuccess = isSuccess;
	}

	public TamsCase getTamsCase() {
		return tamsCase;
	}

	public void setTamsCase(TamsCase tamsCase) {
		this.tamsCase = tamsCase;
	}
	
	public int getIsFinish() {
		return isFinish;
	}

	public void setIsFinish(int isFinish) {
		this.isFinish = isFinish;
	}

	// Constructors

	/** default constructor */
	public TamsDeal() {
	}

	/** minimal constructor */
	public TamsDeal(long idBgt) {
		this.idBgt = idBgt;
	}

	/** full constructor */
	public TamsDeal(long idBgt, TamsPerson tamsPerson,
			String caseNo, int dealType, Date beginDate,
			int isSuccess,Date endDate, String dealContent, String remark) {
		this.idBgt = idBgt;
		this.tamsPerson = tamsPerson;
		this.caseNo = caseNo;
		this.dealType = dealType;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.dealContent = dealContent;
		this.remark = remark;
	}

	// Property accessors

	public long getIdBgt() {
		return this.idBgt;
	}

	public void setIdBgt(long idBgt) {
		this.idBgt = idBgt;
	}

	public TamsPerson getTamsPerson() {
		return this.tamsPerson;
	}

	public void setTamsPerson(TamsPerson tamsPerson) {
		this.tamsPerson = tamsPerson;
	}

	public String getCaseNo() {
		return this.caseNo;
	}

	public void setCaseNo(String caseNo) {
		this.caseNo = caseNo;
	}

	public int getDealType() {
		return this.dealType;
	}

	public void setDealType(int dealType) {
		this.dealType = dealType;
	}

	@JsonSerialize(using=CustomDateSerializer.class)
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	@JsonSerialize(using=CustomDateSerializer.class)
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getDealContent() {
		return this.dealContent;
	}

	public void setDealContent(String dealContent) {
		this.dealContent = dealContent;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}